

import bpy
import nodeitems_utils
from bpy.types import Operator, Menu





class C_节点子菜单_图像纹理(Menu):
	bl_idname = 'node.image_texture'
	bl_label = "图像纹理"

	def draw(self, context):
		layout = self.layout
		layout.operator('node.create_node_texture')
		


class C_节点子菜单_数据(Menu):
	bl_idname = "node.menu_data"
	bl_label = "数据"
	
	def draw(self, context):
		layout = self.layout
		#layout.operator("node.global_node_scene_frame")
		layout.operator('node.node_var_int')
		layout.operator('node.node_var_float')
		layout.operator('node.node_var_ivec3')

		layout.separator()
		layout.operator('node.node_var_curve', icon='IPO_EASE_IN_OUT')
		
		
		layout.separator()
		layout.operator('node.global_node_i8_1d_var', icon='EVENT_I')
		layout.operator('node.global_node_f32_1d_var', icon='EVENT_F')
		layout.operator('node.global_node_i32_a1_var', icon='EVENT_I')
		layout.operator('node.global_node_f32_2d_var', icon='EVENT_F')
		#layout.operator('node.global_node_var_2d_f32')
		layout.operator('node.global_node_vec4_1d_var', icon='EVENT_F3')
		layout.operator('node.global_node_ivec3_1d_var', icon='EVENT_F3')
		#layout.operator('node.global_node_var_2d_f32')

		layout.operator('node.global_node_from_code_to_var_data')


		

		layout.separator()
		layout.operator('node.node_voxel', icon='FILE_VOLUME')
		
		layout.separator()
		layout.menu('node.image_texture', icon='SEQ_PREVIEW')
		
		layout.separator()
		layout.operator('node.global_node_i32_a1_sample_random')
		layout.operator('node.global_node_vec3_a1_sample_random')
		layout.operator('node.global_node_i32_a2_random_intermingle')
		
		layout.menu("node.image_texture", icon='ALIGN_FLUSH')







classes = (
	C_节点子菜单_图像纹理,

	C_节点子菜单_数据,
	
)

def register():
	for c in classes:
		bpy.utils.register_class(c)

def unregister():
	for c in classes:
		bpy.utils.unregister_class(c)

	



